package cn.sumpu.app.guoguojie.domain;

import java.io.Serializable;

public class MemberWork implements Serializable {

	private static final long serialVersionUID = 2647059886588795018L;

	private String identifier;
	private String member;
	private String unit;
	private String department;
	private String entryDate;
	private String departureDate;
	private String visibility;
	private String gmtCreated;
	private String gmtModified;

	public String getMember() {
		return member;
	}

	public void setMember(String member) {
		this.member = member;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getEntryDate() {
		return entryDate;
	}

	public void setEntryDate(String entryDate) {
		this.entryDate = entryDate;
	}

	public String getDepartureDate() {
		return departureDate;
	}

	public void setDepartureDate(String departureDate) {
		this.departureDate = departureDate;
	}

	public String getGmtCreated() {
		return gmtCreated;
	}

	public void setGmtCreated(String gmtCreated) {
		this.gmtCreated = gmtCreated;
	}

	public String getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(String gmtModified) {
		this.gmtModified = gmtModified;
	}

	public String getVisibility() {
		return visibility;
	}

	public void setVisibility(String visibility) {
		this.visibility = visibility;
	}

	public String getEntryYear() {
		try {
			return this.entryDate.substring(0, 4);
		} catch (Exception e) {
			return "";
		}
	}

	public String getEntryMonth() {
		try {
			return this.entryDate.substring(5, 7);
		} catch (Exception e) {
			return "";
		}
	}

	public String getDepartureYear() {
		try {
			return this.departureDate.substring(0, 4);
		} catch (Exception e) {
			return "";
		}
	}

	public String getDepartureMonth() {
		try {
			return this.departureDate.substring(5, 7);
		} catch (Exception e) {
			return "至今";
		}
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getIdentifier() {
		return identifier;
	}

}
